package com.lonely.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.goods.domain.dto.goods.GoodsQuotationSheetPartMaterialDTO;
import com.lonely.goods.domain.dto.goods.GoodsQuotationSheetSubmitDTO;
import com.lonely.goods.domain.entity.SysGoodsPartMaterial;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/7/2 13:54
 * @description: 商品部件物料关系表服务类
 */
public interface IGoodsPartMaterialService extends IService<SysGoodsPartMaterial> {


    /**
     * 编辑商品报价单部件物料信息
     *
     * @param submitDTO
     */
    void submitGoodsQuotationSheetPartsMaterial(GoodsQuotationSheetSubmitDTO submitDTO);

    /**
     * 获取部件id对应的物料信息
     *
     * @param goodsPartId
     * @return
     */
    List<GoodsQuotationSheetPartMaterialDTO> queryPartMaterials(Long goodsPartId);

    /**
     * 获取部件id对应的物料信息(全颜色数据，没有配置设置初始值)
     *
     * @param goodsPartId
     * @return
     */
    List<GoodsQuotationSheetPartMaterialDTO> queryQuotationSheetPartMaterials(Long goodsPartId);

}
